﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="changepassword.aspx.cs" Inherits="admin_changepassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>:: ContructionBidOnline ::</title>
        <link rel="stylesheet" type="text/css" href="../css/main_model.css" />
        <script language="javascript" type="text/javascript">

					function refreshandclose()
					{
						window.setTimeout('window.close();', 15000);
						top.location.reload()
					}
				</script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        </telerik:RadWindowManager>

<asp:Panel ID="pnlCP" DefaultButton="btnCPSubmit" runat="server">
        <h1 class="pagetile">Change Password</h1>
  <div class="model_box">
  <div class="model_top"></div>
  <div class="model_mid">
   <div class="model_row">

  	<div class="model_col1"><asp:Label ID="lblCPCurrentPwd" runat="server" Text="Current Password"></asp:Label></div>
  	<div class="model_col2"><asp:TextBox ID="txtCPCurrentPwd"  runat="server" AutoCompleteType="None" TextMode="Password" ></asp:TextBox>
  	  <div class="model_error"><asp:RequiredFieldValidator ID="reqdCPCurrentPwd" runat="server" ControlToValidate="txtCPCurrentPwd" Display="Dynamic" ErrorMessage="  * Current Password Required" />
  	  <asp:Label ID="lblCPCurrentPwdError" runat="server" Text="* Password is incorrect." Visible="False" />
        </div>
  	</div> 
  </div>
  <div class="model_row">
  	<div class="model_col1"><asp:Label ID="lblCPNewPwd" runat="server" Text="New Password"></asp:Label></div>
  	<div class="model_col2"><asp:TextBox ID="txtCPNewPwd"  runat="server" AutoCompleteType="None" TextMode="Password"></asp:TextBox>
  	<div class="model_error"><asp:RequiredFieldValidator ID="reqdCPNewPwd" runat="server" ControlToValidate="txtCPNewPwd" Display="Dynamic" ErrorMessage="  * New Password Required" />
        <asp:Label ID="lblCPNewPwdError" runat="server" ForeColor="Red" Text="* Passwords don't match." Visible="False"></asp:Label></div>
  	</div> 
  </div>

  <div class="model_row">
  	<div class="model_col1"><asp:Label ID="lblCPConfirmNewPwd" runat="server" Text="Confirm New Password"></asp:Label></div>
  	<div class="model_col2"><asp:TextBox ID="txtCPConfirmNewPwd"  runat="server" AutoCompleteType="None" TextMode="Password"></asp:TextBox>
  	<div class="model_error">
  	<asp:RequiredFieldValidator ID="reqdCPConfirmNewPwd" runat="server" 
  	    ControlToValidate="txtCPConfirmNewPwd" Display="Dynamic" ErrorMessage="  * Confirm Password Required" />
  	    
  	    <asp:CompareValidator  ID="comparepassword" runat="server" 
                        ErrorMessage="* Password does not matches." ControlToCompare="txtCPNewPwd" 
                        ControlToValidate="txtCPConfirmNewPwd" Display="Dynamic"></asp:CompareValidator>
        <asp:Label ID="lblCPConfirmNewPwdError" runat="server" Text="* Passwords don't match." Visible="False"></asp:Label></div>
  	</div> 
  </div>
  <div >
  	<asp:Label CssClass="model_msg" ID="lblerror" runat="server" Text="" Visible="false"></asp:Label>
  </div>
  <div class="model_row">
  	<div class="model_col1"></div>

  	<div class="model_btn" runat="server" id="divforbuttons">
        <asp:ImageButton ID="btnCPSubmit" CssClass="model_submit" runat="server" src="../images/trans.gif" onclick="btnCPSubmit_Click"/>
        <asp:ImageButton ID="btnCPCancel" CssClass="model_cancel" runat="server" src="../images/trans.gif" CausesValidation="false" onclick="btnCPCancel_Click"/>
  	</div>
  </div>
  </div>
  <div class="model_bttm"></div>
       </asp:Panel>

    </form>
</body>
</html>
